package com.qinghuan.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: dubao
 * @Date: 2022/4/4 12:12
 * @Description:
 */
@Controller
public class TestController {

    @RequestMapping("/testInterceptor")
    public String testInterceptor() {

        return "success";
    }

    @RequestMapping("/textExceptionHandler")
    public String textExceptionHandler() {
        System.out.println(1 / 0);
        return "success";
    }

}
